﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopItemCategory")]
    public class ItemCategory : BaseObject
    {
        //begin
        public ItemCategory()
        {}
        public ItemCategory(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _CategoryId;
        public string CategoryId
        {
            get
            {
                return _CategoryId;
            }
            set
            {
                SetPropertyValue("CategoryId", ref _CategoryId, value);
            }
        }
        private long _Count;
        public long Count
        {
            get
            {
                return _Count;
            }
            set
            {
                SetPropertyValue("Count", ref _Count, value);
            }
        }
        private ItemSearch _ItemSearch;
        [Association("ItemSearchItemCategories", typeof(ItemSearch))]
        public ItemSearch ItemSearch
        {
            get
            {
                return _ItemSearch;
            }
            set
            {
                SetPropertyValue("ItemSearch", ref _ItemSearch, value);
            }
        }
        //end

    }
}
